import { dataServices } from "./dataService";
import { EventService } from "./EventService";
import { ResourceServices } from "./ResourceService";
import { prefabServices } from "../res/resourceMgr";
import { winClass } from "./winServices";
import { saveService } from "./saveService";
import { network } from "./network";
import { touchExd } from "./TouchExtend";
import { GlobalFunc } from "./Func";
import { adClass } from "./ad";
import { spriteClass } from "./SpritExd";



export namespace ccs {

    export const prefabMgr = new prefabServices();
    export const dataMgr = new dataServices(); //管理游戏的配置数据
    export const eventList = new EventService(); //事件系统
    export const resMgr = new ResourceServices(); //资源事件
    export const winMgr = new winClass(); //窗口管理
    export const saveMgr = new saveService(); //游戏保存
    export const netMgr = new network(); //云服务
    export const touchEx = new touchExd();  //触摸的扩展类
    export const gf = new GlobalFunc(); //全局方法
    export const AD = new adClass();// 广告
    export const spriteExd = new spriteClass(); //图片扩展类
    // 布局
    export const LayoutType = cc.Enum({
        Horizontal: 0,
        Vertical: 1
    });
    export const mainEmitter = new cc.Node();
}